//
//  QLNiceChatLeftCell.m
//  Nice
//
//  Created by huangyueqi on 2017/7/28.
//  Copyright © 2017年 sjyt. All rights reserved.
//

#import "QLNiceChatLeftCell.h"

@interface QLNiceChatLeftCell ()

@property (weak, nonatomic) IBOutlet UILabel *leftLabel;
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *messageViewHeightConstraint;

@end

@implementation QLNiceChatLeftCell

- (void)awakeFromNib {
    [super awakeFromNib];
    
}

- (void)setChatModel:(QLNiceChatModel *)chatModel {
    _chatModel = chatModel;
    
    if (!self.chatModel) {
        return;
    }
    
    self.leftLabel.text = self.chatModel.umsg;
    
    //聊天气泡的高度
    self.messageViewHeightConstraint.constant = self.chatModel.cellHeight - 45;
}


@end
